package com.crm.service;

import com.crm.entity.Lost;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface LostService {
    //角色增删改查询
    public List<Lost> findAllLost();

    //权限查询
    public Lost saveLost(Lost lost); //新增或修改

    public void deleteLostById(Integer chanceId); //删除

    public void deleteLost(Lost lost);

    public Lost getLost(Integer LostId); //按注解查询单条

    //按条件进行分页查询(动态SQL)
    public Page<Lost> findLost(String lstCustName, String lstCustManagerName, Pageable pageable);
}
